import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

export function getAppList (data) {
  return request({
    url: servicePath.dpMamtServer + '/appConfig/getAppList',
    method: 'post',
    data
  })
}
export function addOrUpd (data) {
  return request({
    url: servicePath.dpMamtServer + '/appConfig/addOrUpd',
    headers: {
      showLoading: true
    },
    method: 'post',
    data
  })
}
// 详情接口
export function updEmpower (data) {
  return request({
    url: servicePath.dpMamtServer + '/appConfig/updEmpower',
    headers: {
      showLoading: true
    },
    method: 'post',
    data
  })
}
// 修改状态
export function updStatus (data) {
  return request({
    url: servicePath.dpMamtServer + '/appConfig/updStatus',
    headers: {
      showLoading: true
    },
    method: 'post',
    data
  })
}
